﻿<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="11*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Label Content="ID" Grid.Row="0" Grid.Column="0"/>
        <Label Content="Name" Grid.Row="1" Grid.Column="0"/>
        <TextBox Name="txtID" Grid.Row="0" Grid.Column="1"/>
        <TextBox Name="txtName" Grid.Row="1" Grid.Column="1"/>
        <Button Content="Ghi" Grid.Row="2" Grid.Column="1"  Width="100" Margin="0,0,0,0" Click="Button_Click" />
        <Button Content="Thoat" Grid.Row="2" Grid.Column="1" Width="100" Margin="350,0,0,0" Click="Button_Click_1" />
    </Grid>
</Window>
